package edu.nf.ch06.superfactory;

/**
 * @author CSY
 * @date 2025 - 04 - 15
 */
public class SuperFactory {
    public static<T> T create(Class<T> clazz) {
        try {
            return clazz.getConstructor().newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
